package com.treasure.hunt.entity

import androidx.annotation.DrawableRes
import com.module.lemlin.rxhttp.HttpServiceData
import com.treasure.hunt.R

data class LuckyNumResponse(
    val data: LuckyNum
) : HttpServiceData()

data class LuckyNum(
    val num: Int,
    val count_down: Long,
    val physical_strength: Int,
    val reply_volume: Int,
    val consume: Int
)

data class LuckyGiftResponse(
    val data: LuckyGift
) : HttpServiceData()

data class LuckyGift(
    val cart_id: Int,
    val goods_id: Int,
    val id: Int,
    val image: String,
    val num: Int,
    val probability: Int,
    val title: String,
    val type: Int
)

data class LuckyFlopResponse(
    val data: MutableList<LuckyFlop> = mutableListOf()
) : HttpServiceData()

data class LuckyFlop(
    val cart_id: Int? = null,
    val goods_id: Int? = null,
    val id: Int? = null,
    val image: String? = null,
    val is_select: Int? = null,
    val num: Int? = null,
    val probability: Int? = null,
    val title: String? = null,
    val type: Int? = null
) {
    @DrawableRes
    var src: Int = R.mipmap.ic_20716
}

data class LuckyGridListResponse(
    val data: LuckyList
) : HttpServiceData()

data class LuckyList(
    val list: MutableList<LuckyGridList> = mutableListOf(),
    val point: Int,
    val user_num: Int
)

data class LuckyGridList(
    val id: Int,
    val image: String,
    val num: Int,
    val switch_text: String,
    val title: String,
    val type_text: String
)


data class LuckyGridResponse(
    val data: LuckyGrid
) : HttpServiceData()

data class LuckyGrid(
    val cart_id: Int,
    val goods_id: Int,
    val id: Int,
    val image: String,
    val key: Int,
    val num: Int,
    val point: Int,
    val probability: Int,
    val spot: Int,
    val switch_text: String,
    val title: String,
    val type: Int,
    val type_text: String
)

data class LuckyReceiveResponse(
    val data: LuckyReceive
) : HttpServiceData()

data class LuckyReceive(
    val image: String,
    val num: Int,
    val text: String
)


data class LuckyRankingResponse(
    val data: MutableList<LuckyRanking> = mutableListOf()
) : HttpServiceData()

data class LuckyRanking(
    val num: Int,//":"列表id integer",
    val avatar: String,//":"头像 string",
    val nickname: String//":"昵称 string",
)


data class LuckySignResponse(
    val data: LuckySign
) : HttpServiceData()

data class LuckySign(
    val image: String,
    val num: Int,
    val text: String,
    val double_switch: Int,
    val id: Int
)
